package com.example.utils;

/**
 * @author chen
 * 定义不同情况下的报错码和信息，从180001开始
 */
public class GeneratorCodeMsg extends CodeMsg{

    private GeneratorCodeMsg(Integer code, String msg){
        super(code,msg);
    }

    public static final GeneratorCodeMsg PASSWORD_ERROR = new GeneratorCodeMsg(10001, "登录密码错误");
    public static final GeneratorCodeMsg USER_EXIST = new GeneratorCodeMsg(10002, "用户已经存在，请重新输入");
    public static final GeneratorCodeMsg USERNAME_NOT_IS_NULL = new GeneratorCodeMsg(10003, "用户名不能为空");
    public static final GeneratorCodeMsg PASSWORD_NOT_IS_NULL = new GeneratorCodeMsg(10002, "密码不能为空");
    public static final GeneratorCodeMsg LOGIN_ERROR = new GeneratorCodeMsg(10003, "用户名认证失败请重新登录");



}
